package x.trident.core.config.center.configuration;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import x.trident.core.config.center.processor.TridentConfigProcessor;

import javax.annotation.Resource;

/**
 * 用于自动装配
 *
 * @author 林选伟
 * @date 2021/9/3 2:16 下午
 */
@Configuration
public class TridentConfigCenterAutoConfiguration {

    @Resource
    private TridentConfigProcessor tridentConfigProcessor;

    /**
     * 自动注入配置中心
     */
    @Bean
    public TridentConfigProcessor configCenterProcess() {
        return tridentConfigProcessor;
    }
}
